]> dgit.raspbian.org Git - gnome-shell.git/commit
quickSettings: Add insertItemBefore() method
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 14 Aug 2023 22:13:34 +0000 (00:13 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 19 Aug 2023 23:54:09 +0000 (01:54 +0200)
commit30a36c970b52f03c92b3977abd087bb6eec53df9
tree5d5277fe0e99db11087ffa811198a1fa828c820d
parentca503774b22c15b4a86cfeb0feb0a47829a621e6
quickSettings: Add insertItemBefore() method

The QuickSettings menu currently only support appending items
at the end. Extensions can get around that limitation by accessing
the private grid property to move the item afterwards, but we don't
allow this in our own code.

Expose a new insertItemBefore() method that allows adding an item
before an existing one.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2894>
js/ui/quickSettings.js